﻿<!DOCTYPE html>

<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
    <link href="~/Content/admin/css/style.css" rel="stylesheet" />
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
    <script src="/plugins/ckeditor/ckeditor.js" type="text/javascript"></script>
    <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
    @*<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js" type="text/javascript"></script>*@
    
    @Styles.Render("~/Content/themes/base/css")
    @Scripts.Render("~/bundles/modernizr")
    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/jqueryval")
    @Scripts.Render("~/bundles/jqueryui")
    @RenderSection("scripts", required: false)
    <script>
        $(document).ready(function () {
            var refresh = function () {
                $.ajax({
                    type: "post",
                    url: "/admin/OrderCount",
                    success: function (data) {
                        if (data >= 1) {
                            $("#notify").empty().append('<div class="notifynumber">' + data + '</div>')
                        } else $("#notify").empty();
                        setTimeout(refresh, 1500);
                    }
                });
            }
            $(function () {
                refresh();
            });
        });
    </script>
   
</head>
<body>
    <header>
        @Html.Partial("_PartialAdminHeader")
    </header>
    <nav>
        <div id="nav-content">
            <ul id="ul-nav">
                <li><a href="/admin/categories" title=""><span><span>DANH MỤC</span></span></a></li>
                <li><a href="/admin/products" title=""><span><span>SẢN PHẨM</span></span></a></li>
                <li><a href="/admin/orders" title="">
                    <span><span>
                        ĐƠN ĐẶT HÀNG
                    </span></span></a>
                    <div id="notify"></div>
                </li>
                <li class="last_item"><a href="/admin/statistic" title=""><span><span>THỐNG KÊ</span></span></a></li>
            </ul>
        </div>
    </nav>
    <section id="page">
        <section id="meu_page">
           @* @{
                string action = "MenuPage"+ViewBag.action;
                Html.RenderAction(action, "PartialView");
            }
            @{Html.RenderPartial("../PartialView/MenuPageIndex");}*@
        </section>
        <section id="content-box">
            <section id="content" class="ex">
                @RenderBody()
            </section>
        </section>
    </section>
    <footer>

    </footer>
</body>
</html>
